package com.example.mysql.jpa.domain;

import lombok.Data;

import javax.persistence.*;

@Entity
@Table(name = "teacher_student")
@Data
@IdClass(TeacherStudentKey.class)
public class TeacherStudent
{
    @Id
    @Column(name = "student_id")
    private Integer studentId;

    @Id
    @Column(name = "teacher_id")
    private Integer teacherId;
}
